package com.ruoyi.find.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 家具信息对象 furniture
 * 
 * @author ruoyi
 * @date 2025-05-24
 */
public class Furniture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家具ID */
    private Long furnitureId;

    /** 家具名称 */
    @Excel(name = "家具名称")
    private String furnitureName;

    /** 家具类型ID */
    @Excel(name = "家具类型ID")
    private Long furnitureTypeId;

    /** 家具类型名称 */
    @Excel(name = "家具类型名称")
    private String furnitureTypeName;

    /** 交易类型：1-出售 2-租赁 */
    @Excel(name = "交易类型", readConverterExp = "1=-出售,2=-租赁")
    private Integer transactionType;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 新旧程度：1-全新 2-9成新 3-8成新 4-7成新 5-其他 */
    @Excel(name = "新旧程度", readConverterExp = "1=-全新,2=-9成新,3=-8成新,4=-7成新,5=-其他")
    private Integer newLevel;

    /** 所在地 */
    @Excel(name = "所在地")
    private String location;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactPhone;

    /** 家具描述 */
    @Excel(name = "家具描述")
    private String description;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 状态：0-下架 1-上架 */
    @Excel(name = "状态", readConverterExp = "0=-下架,1=-上架")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    public void setFurnitureId(Long furnitureId)
    {
        this.furnitureId = furnitureId;
    }

    public Long getFurnitureId()
    {
        return furnitureId;
    }
    public void setFurnitureName(String furnitureName)
    {
        this.furnitureName = furnitureName;
    }

    public String getFurnitureName()
    {
        return furnitureName;
    }
    public void setFurnitureTypeId(Long furnitureTypeId)
    {
        this.furnitureTypeId = furnitureTypeId;
    }

    public Long getFurnitureTypeId()
    {
        return furnitureTypeId;
    }
    public void setFurnitureTypeName(String furnitureTypeName)
    {
        this.furnitureTypeName = furnitureTypeName;
    }

    public String getFurnitureTypeName()
    {
        return furnitureTypeName;
    }
    public void setTransactionType(Integer transactionType)
    {
        this.transactionType = transactionType;
    }

    public Integer getTransactionType()
    {
        return transactionType;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setNewLevel(Integer newLevel)
    {
        this.newLevel = newLevel;
    }

    public Integer getNewLevel()
    {
        return newLevel;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setContactPhone(String contactPhone)
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone()
    {
        return contactPhone;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    public String getCreateBy()
    {
        return createBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("furnitureId", getFurnitureId())
            .append("furnitureName", getFurnitureName())
            .append("furnitureTypeId", getFurnitureTypeId())
            .append("furnitureTypeName", getFurnitureTypeName())
            .append("transactionType", getTransactionType())
            .append("price", getPrice())
            .append("newLevel", getNewLevel())
            .append("location", getLocation())
            .append("contactPhone", getContactPhone())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}